package com.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("plan")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Plan {


    /** 其他 */
    public static final int OTHER = 0;

    /** 交通 */
    public static final int TRANSPORTATION = 1;

    /** 住宿 */
    public static final int ACCOMMODATION = 2;

    /** 餐饮 */
    public static final int MEAL = 3;

    /** 会议 */
    public static final int MEETING = 4;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 申请ID (关联apply表的id)
     */
    @TableField("apply_id")
    private Integer applyId;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 详细信息
     */
    @TableField("detail")
    private String detail;

    /**
     * 预算金额 (单位：分，避免浮点数精度问题)
     */
    @TableField("budget_amount")
    private int budgetAmount;

    /**
     * 预算明细说明
     */
    @TableField("budget_detail")
    private String budgetDetail;

    /**
     * 超支原因
     */
    @TableField("overspend_reason")
    private String overspendReason;
}